#!/bin/bash

mkdir /Volumes/nas/opt/alist

docker stop alist
docker rm alist

docker run -d --name=alist --restart=always \
-v /Volumes/nas/opt/alist:/opt/alist/data \
-v /Volumes/nas/data:/opt/alist/nas \
-e TZ=Asia/Shanghai \
-p 5244:5244 \
xhofe/alist:latest

#admin/Lfq@2025


docker rm -f alist && \
docker run -d --name=alist --restart=always \
  -v /Users/dev/opt/alist/data:/opt/alist/data \
  -v ~/:/opt/alist/oss \
  -e TZ=Asia/Shanghai \
  -e PUID=0 \
  -e PGID=0 \
  -e UMASK=0 \
  -p 5244:5244 \
  docker.1ms.run/xhofe/alist:latest-aio


docker rm -f alist && \
docker run -d --name=alist --restart=always \
  -v ~/opt/alist:/opt/alist/data \
  -v ~/:/opt/alist/oss \
  -e TZ=Asia/Shanghai \
  -p 5244:5244 \
  docker.1ms.run/xhofe/alist:latest-aio